package api_getway

import (
	"api-getway/handler/api"
	"github.com/gin-gonic/gin"
)

func Route() *gin.Engine {
	r := gin.Default()
	r.POST("dx", api.SendSms)          //短信发送
	r.POST("upload", api.Upload)       //视频上传
	r.POST("register", api.Register)   //用户注册
	r.POST("login", api.Login)         //用户登录
	r.POST("videoAdd", api.VideoAdd)   //视频添加
	r.POST("videoShow", api.VideoShow) //视频详情
	r.POST("history", api.History)     //历史记录存储
	r.POST("episode", api.Episode)     //剧集列表
	r.POST("hist", api.HistoryList)    //历史记录列表
	return r
}
